package com.yyy.lambda;

import java.util.Comparator;

public class TestComparator {

    public static void main(String[] args) {

        System.out.println(comparator.compare("hello333", "hell2o"));
    }

    static Comparator<String> comparator = (x, y) -> Integer.compare(x.length(), y.length());
}
